<%@ page contentType="text/html;charset=utf-8"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@page import="com.cs.beneficios.common.ConnectionFactory,com.cs.beneficios.common.entity.Consultas,java.sql.Connection,java.sql.ResultSet,java.sql.SQLException,com.cs.beneficios.common.entity.database"%>
<script language="JavaScript" src="<%= request.getContextPath() + "/js/calendar6.js" %>"></script>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Modificar Sede</title>
  </head>
  
  <script language="javascript">

 //Validacion campos vacios 
  
    function checkFields() {
      missinginfo = "";
      if (document.frmModificarSede.sede.value == "") {
        alert("Debe ingresar el nombre para la sede!!");
        document.frmIngresarSede.sede.focus() 
        return false;
      }
      if (document.frmModificarSede.dirEncasillada.value == "") {
        alert("Debe ingresar la direccion encasillada!!");
        document.frmIngresarSede.viaTipo.focus() 
        return false;
      }
      
      
      
      
     /*if (document.frmIngresarSede.dirdescriptiva.value == "") {
      missinginfo += "\n     -  Direccion Descriptiva";
      }
      if (missinginfo != "") {
      alert("Debe ingresar una direccion descriptiva para la sede!!");
      return false;
      }
      if (document.frmIngresarSede.direncasillada.value == "") {
      missinginfo += "\n     -  Direccion Encasillada";
      }
      if (missinginfo != "") {
      alert("Debe ingresar la direccion ensillada de la Sede!!");
      return false;
      }    */ 
      var fecha1 = new String(document.frmModificarSede.desde.value);
      var fecha2 = new String(document.frmModificarSede.hasta.value);
      var posterior = "";
      var anterior = "";
      var arrayFecha = fecha2.split("-");
      posterior = arrayFecha[0]+arrayFecha[1]+arrayFecha[2];
      arrayFecha = fecha1.split("-");
      anterior = arrayFecha[0]+arrayFecha[1]+arrayFecha[2];
      
      if (parseInt(anterior)>=parseInt(posterior)){
         alert("La fecha Desde Vigencia es mayor a la fecha Hasta Vigencia.") 
         return false;
      }
      
       //Valida que la fecha Inicial no sea menor a la fecha de hoy
       var Actual = "";
       var hoy = new Date();
       var dia = eval(hoy.getDate());
           if (dia<10)
            	dia = "0" + dia;
        var mes = eval(hoy.getMonth()+1);
          if (mes<10)
             	mes = "0" + mes;
       var fechaActual= hoy.getYear() + "-" + mes + "-" + dia;
       var arrayFecha = fechaActual.split("-");
       Actual= arrayFecha[0]+arrayFecha[1]+arrayFecha[2];
       if(parseInt(anterior)<parseInt(Actual)) {     
          alert("La fecha inicial es menor a la fecha de hoy!!! ") 
          return false; 
        }
      
      document.frmModificarSede.submit();
     }      
  
  
function agregar(object,origen)
  {
    document.frmModificarSede.dirdesc.value="";
    document.frmModificarSede.dirdesc.disabled = true;
    if(document.frmModificarSede.viaTipo.value==0){
      alert('El tipo no es valido.')
      return;
    }
    if(origen == 'tipo') tipo = object.value.toUpperCase();
    if(origen == 'vNro'){
      if(object.value.length == 1) object.value='00'+object.value;
      if(object.value.length == 2) object.value='0'+object.value;
      vNro = object.value.toUpperCase();
    }
    if(origen == 'vOr') vOr = object.value.toUpperCase();
    if(origen == 'vApn'){
      if(object.value.length == 1) object.value=' '+object.value;
      vApn = object.value.toUpperCase();
    }
    if(origen == 'cOr') cOr = object.value.toUpperCase();
    if(origen == 'cNro'){
      if(object.value.length == 1) object.value='00'+object.value;
      if(object.value.length == 2) object.value='0'+object.value;
      cNro = object.value.toUpperCase();
    }
    if(origen == 'cApn') {
      if(object.value.length == 1) object.value=' '+object.value;
      cApn = object.value.toUpperCase();
    }
    if(origen == 'placa'){
      if(object.value.length == 1) object.value='00'+object.value;
      if(object.value.length == 2) object.value='0'+object.value;
      placa = object.value.toUpperCase();
    }
    if(origen == 'interior'){
      if(object.value.length == 1) object.value='0000'+object.value;
      if(object.value.length == 2) object.value='000'+object.value;
      if(object.value.length == 3) object.value='00'+object.value;
      if(object.value.length == 4) object.value='0'+object.value;
      interior = object.value.toUpperCase();
    }
    if(origen == 'bloque'){
      if(object.value.length == 1) object.value='0'+object.value;
      bloque = object.value;
    }

    document.frmModificarSede.dirEncasillada.value =  tipo+" "+vOr+vNro+" "+vApn+"   "+cOr+cNro+" "+cApn+" "+placa+" "+bloque+interior;
  }
  
</script>
  
  <body>
    <P></P>
    <P></P>
    <P></P>
    <P></P>
    <P align="center"></P>
    <DIV align="center"  class="titulosenblanco">
      <P>ADMINISTRACION DE SEDES</P>
      <P></P>
      <P></P>
    </DIV>
    <DIV align="center">
    <form name="frmModificarSede" method="POST" action="<%=request.getContextPath()+"/Sedes/ModSede.do"%>">
      <table cellspacing="3" cellpadding="3" border="0" width="80%" align="center">
<%
String strcodsede = request.getParameter("Codigo");
String strnomsede = "";
String strdescripcion = "";
String strmunicipio = "";
String strtipo = "";
String strcaracter = "";
String strdirdesc = "";
String strdirenc = "";
String strcobama = "";
String strdesde = "";
String strhasta = "";
String strvigencia = "";

 
 //ConnectionFactory cf = new ConnectionFactory("beneficios","beneficios");
 ConnectionFactory cf = new ConnectionFactory();
 Consultas consulta = new Consultas(cf);
 ResultSet rs = null;
 
 try{
   
   rs = consulta.getDetSede(strcodsede);
 }catch(Exception e){}

    if(rs != null){
       try{
         while(rs.next()){ 
            strnomsede = rs.getString("nombre");
            strdescripcion = rs.getString("descripcion");
            strtipo = rs.getString("tipo");
            strcaracter = rs.getString("car");
            strmunicipio = rs.getString("Municipio");
            strdirdesc = rs.getString("dirdescrip");
            strdirenc = rs.getString("direncas");
            strcobama = rs.getString("cobama");
            strdesde = rs.getString("desde");
            strhasta = rs.getString("hasta");
            strvigencia = rs.getString("vig");
            
            String dirEncasillada = strdirenc;
            // CR 0037 BB   0107  B 007 0001001
            // 0123456789012345678901234567891234
            if((Object)dirEncasillada != null)
            {
              int a = dirEncasillada.length();
              if(dirEncasillada.length() == 32)
              {
                String tipo = dirEncasillada.substring(0,2);
                String vOr = dirEncasillada.substring(3,4);
                String vNro = dirEncasillada.substring(4,7);
                String vAp = dirEncasillada.substring(8,10);
                String cOr = dirEncasillada.substring(13,14);
                String cNro = dirEncasillada.substring(14,17);
                String cAp = dirEncasillada.substring(18,20);
                String placa = dirEncasillada.substring(21,24);
                String bloque = dirEncasillada.substring(25,27);
                String interior = dirEncasillada.substring(27,32);
                request.setAttribute("tipo",tipo);
                request.setAttribute("vOr",vOr);
                request.setAttribute("vNro",vNro);
                request.setAttribute("vAp",vAp);
                request.setAttribute("cOr",cOr);
                request.setAttribute("cNro",cNro);
                request.setAttribute("cAp",cAp);
                request.setAttribute("placa",placa);
                request.setAttribute("bloque",bloque);
                request.setAttribute("interior",interior);
              }else
              {
                request.setAttribute("tipo","0");
                request.setAttribute("vOr","0");
                request.setAttribute("vNro","000");
                request.setAttribute("vAp","00");
                request.setAttribute("cOr","0");
                request.setAttribute("cNro","000");
                request.setAttribute("cAp","00");
                request.setAttribute("placa","000");
                request.setAttribute("bloque","00");
                request.setAttribute("interior","00000");
              }
            }
            
            request.setAttribute("dirEncasillada",strdirenc);
                
                }
           }catch(SQLException e){
              e.printStackTrace();
            }
        }else{%>
        <tr>
          <td colspan="2">
            <font>Ocurrio un error, al realizar la consulta</font> 
          </td>    
      </tr>
      <%    }%>
      
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Nombre(*)</td>
          <td width="61%">
            <input type="text" class="form" value="<%=strnomsede%>" name="sede" maxlength="40" size="40"/>
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Descripci&oacute;n</td>
          <td width="61%">
            <textarea name="descripcion" class="form" cols="40" rows="7"><%=strdescripcion%></textarea>
          </td>
        </tr>       
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Municipio(*)</td>
          <td width="61%">
            <logic:present name="municipios" scope="request">
                <html:select name="municipios" property="code" title="Municpios" styleClass="formLista" value="<%=strmunicipio%>" >
                  <html:options name="municipios" labelName="municipio" labelProperty="descVflex" property="code" collection="municipios"/>
                </html:select>
            </logic:present>
            
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Tipo</td>
          <td width="61%">
            <input type="text" name="tipo" value="<%=strtipo%>" class="form" maxlength="20" size="20"/>
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Caracter</td>
          <td width="61%">
            <select name="caracter" class="formLista">
              <% if(strcaracter.equals("Publica")){
              %>
                    <option value="Publica" selected="selected">Publica</option>
              <%}else{
              %>
                    <option value="Publica">Publica</option>
              <%} 
                if(strcaracter.equals("Privada")){
              %>
                    <option value="Privada" selected="selected">Privada</option>
              <%}else{
              %>
                    <option value="Privada">Privada</option>
              <%}
                if(strcaracter.equals("Otra")){  
              %>
                    <option value="Otra" selected="selected">Otra</option>
              <%}else{
              %>
                    <option value="Otra">Otra</option>
              <%}%>
            </select>
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Direcci&oacute;n Descriptiva(*)</td>
          <td width="61%">
            <input type="text" class="form" name="dirdesc"  value="<%=strdirdesc%>" maxlength="30" size="30"/>
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla" colspan="2">Direcci&oacute;n &nbsp;Encasillada(*)</td>
        </tr>
        <tr>
             <td width="28%">&nbsp;</td>
             <td colspan="3" class="celdatabla">
               <table cellspacing="3" align="left"  cellpadding="2" border="1" width="48%">
                 <tr>
                   <td colspan="4">
                     <DIV align="center">
                       <STRONG class="celdatabla">Datos de la via</STRONG> 
                     </DIV>
                   </td>
                   <td colspan="3">
                     <DIV align="center">
                       <STRONG class="celdatabla">Datos del cruce</STRONG>
                     </DIV>
                   </td>
                   <td colspan="3">
                     <DIV align="center">
                       <STRONG class="celdatabla">Datos adicionales</STRONG>
                     </DIV>
                   </td>
                 </tr>
                 <tr>
                   <td>
                     <DIV align="center">Tipo</DIV>
                   </td>
                   <td>
                     <DIV align="center">Or.</DIV>
                   </td>
                   <td>
                     <DIV align="center">Nro.</DIV>
                   </td>
                   <td>
                     <DIV align="center">Apn.</DIV>
                   </td>
                   <td>
                     <DIV align="center">Or.</DIV>
                   </td>
                   <td>
                     <DIV align="center">Nro.</DIV>
                   </td>
                   <td>
                     <DIV align="center">Apn.</DIV>
                   </td>
                   <td>
                     <DIV align="center">Placa</DIV>
                   </td>
                   <td>
                     <DIV align="center">Bloque</DIV>
                   </td>
                   <td>
                     <DIV align="center">Interior</DIV>
                   </td>

                 </tr>
                 <tr>
                   <td>
                    <% String tipo = (String)request.getAttribute("tipo"); 
                       if((Object)tipo == null) 
                       tipo = request.getParameter("viaTipo");
                       if((Object)tipo == null) tipo = "";
                    %>  
                     <select size="1" name="viaTipo" onchange="agregar(this,'tipo')"  onmouseover="this.T_WIDTH=180;this.T_TITLE='Tipo de via';return escape('Corresponde al tipo de via.')" class="form">
                     <% if((Object)tipo != null){
                            if(tipo.equals("0")){%>
                             <option value="0" selected="selected"></option>
                          <%}else{%>
                             <option value="0"></option>
                          <%}%>
                          <% if(tipo.equals("CR")){%>
                             <option value="CR" selected="selected">Carrera</option>
                          <%}else{%>
                             <option value="CR">Carrera</option>
                          <%}%>
                          <% if(tipo.equals("CL")){%>
                             <option value="CL" selected="selected">Calle</option>
                          <%}else{%>
                             <option value="CL">Calle</option>
                           <%}%>
                          <% if(tipo.equals("CQ")){%>  
                             <option value="CQ" selected="selected">Circular</option>
                          <%}else{%>
                             <option value="CQ">Circular</option>
                           <%}%>
                          <% if(tipo.equals("TR")){%>
                             <option value="TR" selected="selected">Transversal</option>
                          <%}else{%>
                             <option value="TR" >Transversal</option>
                           <%}%>
                          <% if(tipo.equals("DG")){%>
                             <option value="DG" selected="selected">Diagonal</option>
                          <%}else{%>
                             <option value="DG">Diagonal</option>
                           <%}%>
                          <% if(tipo.equals("AV")){%>
                             <option value="AV" selected="selected">Avenida</option>
                          <%}else{%>
                             <option value="AV">Avenida</option>
                          <%}
                          }else{%>
                            <option value="0"></option>
                            <option value="CR">Carrera</option>
                            <option value="CL">Calle</option>
                            <option value="CQ">Circular</option>
                            <option value="TR" >Transversal</option>
                            <option value="DG">Diagonal</option>
                            <option value="AV">Avenida</option>
                          <%}%>
                     </select>
                   </td>
                   <td>
                   <% String vOr = (String)request.getAttribute("vOr"); 
                      if((Object)vOr == null) vOr = request.getParameter("viaOrientacion");
                      if((Object)vOr == null) vOr = "";
                   %>  
                     <select size="1" class="form" onchange="agregar(this,'vOr')" name="viaOrientacion" onmouseover="this.T_WIDTH=180;this.T_TITLE='Orientacion de la via';return escape('Corresponde a la orientacion de la via.')">
                     <% if((Object)vOr != null){
                            if(vOr.equals("0")){%>
                       <option value="0" selected="selected"></option>
                    <%}else{%>
                       <option value="0"></option>
                    <%}%>
                    <% if(vOr.equals("E")){%>
                       <option value="E" selected="selected">Este</option>
                    <%}else{%>
                       <option value="E">Este</option>
                    <%}%>
                    <% if(vOr.equals("E")){%>
                       <option value="S" selected="selected">Sur</option>
                    <%}else{%>
                       <option value="S">Sur</option>
                     <%}
                    }else{%>  
                       <option value="0"></option>
                       <option value="E">Este</option>
                       <option value="S">Sur</option>
                    <%}%>
                     </select>
                   </td>
                   <td>
                   <% String vNro = (String)request.getAttribute("vNro"); 
                      if((Object)vNro == null) vNro = request.getParameter("vNro");
                      if((Object)vNro == null) vNro = "";
                   %>  
                     <input type="text" value="<%=vNro%>" onchange="agregar(this,'vNro')" name="vNro" class="form" maxlength="3" size="3" onmouseover="this.T_WIDTH=180;this.T_TITLE='Numero de la via';return escape('Corresponde al numero de la via.')"/>
                   </td>       
                   <td>
                   <% String vAp = (String)request.getAttribute("vAp"); 
                      if((Object)vAp == null) vAp = request.getParameter("viaApendice");
                      if((Object)vAp == null) vAp = "";
                   %>  
                     <input type="text" value="<%=vAp%>" class="form" size="2" maxlength="2"  name="viaApendice" onchange="agregar(this,'vApn')" onmouseover="this.T_WIDTH=180;this.T_TITLE='Apendice de la via';return escape('Corresponde al apendice; ejemplo: A, AA, B, BB etc.')"/>
                   </td>
                   <td>
                     <DIV align="center">
                     <% String cOr = (String)request.getAttribute("cOr"); 
                        if((Object) cOr == null) cOr = request.getParameter("cruceOrientacion");
                        if((Object) cOr == null) cOr = "";
                     %>  
                       <select size="1" class="form" name="cruceOrientacion" onchange="agregar(this,'cOr')" onmouseover="this.T_WIDTH=180;this.T_TITLE='Orientacion del cruce';return escape('Corresponde a la orientacion del cruce.')">
                         <% if((Object)cOr != null){
                            if(cOr.equals("0")){%>
                       <option value="0" selected="selected"></option>
                    <%}else{%>
                       <option value="0"></option>
                    <%}%>
                    <% if(cOr.equals("E")){%>
                       <option value="E" selected="selected">Este</option>
                    <%}else{%>
                       <option value="E">Este</option>
                    <%}%>
                    <% if(cOr.equals("S")){%>
                       <option value="S" selected="selected">Sur</option>
                    <%}else{%>
                       <option value="S">Sur</option>
                     <%}
                    }else{%>  
                       <option value="0"></option>
                       <option value="E">Este</option>
                       <option value="S">Sur</option>
                    <%}%>
                       </select>
                     </DIV>
                   </td>
                   <td>
                     <DIV align="center">
                      <% String cNro = (String)request.getAttribute("cNro"); 
                      if((Object)cNro == null) cNro = request.getParameter("cruceNumero");
                      if((Object)cNro == null) cNro = "";
                      %>  
                       <input type="text" value="<%=cNro%>" class="form" size="3" maxlength="3" name="cruceNumero" onchange="agregar(this,'cNro')" onmouseover="this.T_WIDTH=180;this.T_TITLE='Numero del cruce';return escape('Primer numero de la placa de la puerta.')"/>
                     </DIV>
                   </td>
                   <td>
                     <DIV align="center">
                     <% String cAp = (String)request.getAttribute("cAp"); 
                      if((Object)cAp == null) cAp = request.getParameter("cruceApendice");
                      if((Object)cAp == null) cAp = "";
                    %>  
                       <input type="text" value="<%=cAp%>" class="form" maxlength="2" size="2" name="cruceApendice" onchange="agregar(this,'cApn')" onmouseover="this.T_WIDTH=180;this.T_TITLE='Apendice del cruce';return escape('Corresponde al apendice; ejemplo: A, AA, B, BB etc.')"/>
                     </DIV>
                   </td>
                   <td>
                     <DIV align="center">
                    <% String placa = (String)request.getAttribute("placa"); 
                      if((Object)placa == null) placa = request.getParameter("placa");
                      if((Object)placa == null) placa = "";
                    %>  
                       <input type="text" value="<%=placa%>" size="3" maxlength="3" name="placa" onchange="agregar(this,'placa')" class="form" onmouseover="this.T_WIDTH=180;this.T_TITLE='Placa';return escape('Es el segundo numero de la puerta y que corresponde a la distancia que existe entre la esquina y la propiedad.')"/>
                     </DIV>
                   </td>
                   <td>
                     <DIV align="center">
                    <% String bloque = (String)request.getAttribute("bloque"); 
                      if((Object)bloque == null) bloque = request.getParameter("bloque");
                      if((Object)bloque == null) bloque = "";
                    %>
                       <input type="text" value="<%=bloque%>" class="form" maxlength="2" name="bloque" onchange="agregar(this,'bloque')" size="2" onmouseover="this.T_WIDTH=180;this.T_TITLE='Bloque';return escape('Aplica para edificios o unidades residenciales.')"/>
                     </DIV>
                   </td>
                   <td>
                     <DIV align="center">
                     <% String interior = (String)request.getAttribute("interior"); 
                      if((Object)interior == null) interior = request.getParameter("interior");
                      if((Object)interior == null) interior = "";
                     %>
                       <input type="text" value="<%=interior%>" class="form" size="5" name="interior" onchange="agregar(this,'interior')" maxlength="5" onmouseover="this.T_WIDTH=180;this.T_TITLE='Interior';return escape('El numero de apartamento, si es el caso.')"/>
                     </DIV>
                   </td>

                 </tr>
                 <tr>
                    <td colspan="10">
                      <DIV align="center">
                        <STRONG>Direccion Generada
                        </STRONG>
                      </DIV>
                    </td>
                 </tr>
                 <tr>
                    <td colspan="10">
                      <% String dirEncasillada = (String)request.getAttribute("dirEncasillada"); 
                         if((Object) dirEncasillada == null) dirEncasillada = request.getParameter("direnc");
                         if((Object) dirEncasillada == null) dirEncasillada = "";
                      %>  
                      <DIV align="center"><input name="dirEncasillada" size="40" value="<%=dirEncasillada%>" class="form" readonly="true"/>
                      </DIV>
                    </td>
                 </tr>
               </table>
             </td>
           </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Localizaci&oacute;n COBAMA</td>
          <td width="61%">
            <input type="text" value="<%=strcobama%>" class="form" name="cobama" maxlength="20" size="20"/>
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Desde Vigencia</td>
          <td width="61%">
            <% if(strdesde.equals("nulo")){
                  strdesde="";
                }%>
            <input type="text" Class="form" value="<%=strdesde%>"  name="desde" maxlength="11" size="11"/>
              <a href="javascript:effectiveFrom1.popup();">
                        <img src="<%= request.getContextPath() + "/images/cal.gif" %>" 
                        width="16" height="16" border="0" alt="Click para seleccionar la fecha"></a>
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Hasta Vigencia</td>
          <td width="61%">
            <% if(strhasta.equals("nulo")){
                  strhasta="";
                }%>
            <input type="text" Class="form" value="<%=strhasta%>" name="hasta" maxlength="11" size="11"/>
            <a href="javascript:effectiveUntil1.popup();">
                 <img src="<%= request.getContextPath() + "/images/cal.gif" %>" 
                width="16" height="16" border="0" alt="Click para seleccionar la fecha"></a>
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Vigencia</td>
          <td width="61%">
            <select name="vigencia">
                 <%if(strvigencia.equals("A")){%>
                  <option class="form" value="A" selected="selected">Activo</option>
                  <option value="I">Inactivo</option>
                 <%}else{%>
                  <option class="form" value="I" selected="selected">Inactivo</option>
                  <option value="A">Activo</option>
                 <%}%>
                </select>
          </td>
        </tr>
        <tr>
          <td width="11%"></td>
          <td width="28%"></td>
          <td width="61%"></td>
        </tr>
        <tr>
          <td width="11%"></td>
          <td width="28%">&nbsp;
          </td>
          <td width="61%">
           <input type="hidden" name="codsede" value="<%=strcodsede%>"/>
            <input type="submit" value="Modificar" onclick="checkFields()"/>
          </td>
        </tr>
      </table>
      <a href="<%=request.getContextPath()+"/Sedes/ConsultarSedes.do"%>">
        <img src="<%=request.getContextPath() + "/images/BACK1-1.gif"%>" border="0"/>
      </a>
      
      
    <script language="javascript">    
    var effectiveFrom1 = new calendar1(document.forms['frmModificarSede'].elements['desde'],"-",'<%=request.getContextPath()+"/js/"%>');
    var effectiveUntil1 = new calendar1(document.forms['frmModificarSede'].elements['hasta'],"-",'<%=request.getContextPath()+"/js/"%>');             
   
    var tipo = document.frmModificarSede.viaTipo.value;
    var vNro = document.frmModificarSede.vNro.value;
    var vOr = document.frmModificarSede.viaOrientacion.value;
    var vApn = document.frmModificarSede.viaApendice.value;
    var cOr = document.frmModificarSede.cruceOrientacion.value;
    var cNro = document.frmModificarSede.cruceNumero.value;
    var cApn = document.frmModificarSede.cruceApendice.value;
    var placa = document.frmModificarSede.placa.value;
    var interior = document.frmModificarSede.interior.value;
    var bloque = document.frmModificarSede.bloque.value;


    </script>
     </form>
    </DIV>
  <% cf.closeConnection(consulta.getConn());%>
  </body>
</html>
